﻿#region Copyright (c) Nicola Gallo All rights reserved.
/*
 * All rights reserved. Reproduction of trasmission of this file, or a portion thereof,
 * is forbidden without prior written permission of Nicola Gallo.
 * 
 * Author: Nicola Gallo
 * Date: 09/04/2011
 * 
 * */
#endregion
namespace PrismMVC.ModuleA.Services
{
    //.NET References
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    //PrismMVC References.
    using PrismMVC.ModuleA.Data;

    /// <summary>
    /// Defines a person service.
    /// </summary>
    public class PersonsService : IPersonsService
    {
        //Methods

        /// <summary>
        /// Gets all persons.
        /// </summary>
        /// <returns></returns>
        public IList<Person> GetAllPersons()
        {
            IList<Person> persons = new List<Person>();
            persons.Add(new Person("1") { Name = "Nicola", Surename = "Rossi", City="Matera", Address="Via Roma"});
            persons.Add(new Person("1") { Name = "Roberto", Surename = "Bianchi", City = "Roma", Address = "Via Rosselli" });
            persons.Add(new Person("1") { Name = "Giovanni", Surename = "Verdi", City = "Torino", Address = "Via Lucana" });
            persons.Add(new Person("1") { Name = "Francesca", Surename = "Totti", City = "Bologna", Address = "Via Roma" });
            persons.Add(new Person("1") { Name = "Luca", Surename = "Banfi", City = "Verona", Address = "Via Garibaldi" });
            return persons;
        }
    }
}